import { createRouter, createWebHashHistory } from 'vue-router';

export const routes: any = [
  {
    path: '/',
    name: 'admin',
    redirect: '/auth',
  },
  {
    path: '/auth',
    name: 'auth',
    //redirect: '/auth/login',
    meta: { authWhitelist: true, title: '登录' },
    component: () => import('@/views/auth/index.vue'),
  },
];

export const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
